str="hello world";
a={};

def count(x):
	global a;
	if(a.get(x)==None):
		a[x]=1;
	else:
		a[x]+=1;
	return x;

r=map(count,str);

print(list(r));
print(a);